<%@page import="insa.model.Employee"%>
<%@page import="insa.model.EmployeeInfo"%>
<%@page import="java.util.ArrayList"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
    pageEncoding="UTF-8"%>
<%
 Employee emp= (Employee)request.getAttribute("emp");
 EmployeeInfo emp_info = (EmployeeInfo)request.getAttribute("emp_info");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../css/insa.css" />
<link rel="stylesheet" type="text/css" href="../css/button.css">
<title>SK43 TokTok Project</title>
<script type="text/javascript">

function check(){
	document.modify.submit();
}
</script>
</head>
 
<body>

<table  width="1024" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td style="height:80px">
			<!-- 상단 메뉴 페이지 포함 -->
			<jsp:include page="../include/top.jsp"></jsp:include>
		</td>
	</tr>
	<tr>
		<td style="height:600px" valign="top">
			<!-- 본페이지 시작 -->
			<form name="modify" method="Post" action="./modifybase.do">
			<table>
				<tr>
					<td>
			
						
						<div id="base_info" ><!-- 추가인적사항 레이어 시작 -->
						<h4 style="margin:20px 0 8px;"><img src="../images/baseinfo.gif"> 기본 사항</h4>  
						<table class="baseTbl baseinfo1" summary="기본사항" border="1">
							<tr>
								<th class="title">ID</th>
								<td class="txt">
									<input name="employee_id" type="text" size="13" size="33" class="text" value="<%=emp.getEmployee_id()%>" readonly />
									<input name="employee_info_id" type="hidden" size="13" size="33" class="text" value="<%=emp_info.getEmployee_info_id()%>"/>
								</td>
							</tr>
							<tr>
								<th class="title">비밀번호<span class="essential">*</span></th>
								<td class="txt">
									<input name="passwd" type="password" size="13" size="33" class="text" value="<%=emp.getPasswd()%>"/>
								</td>
							</tr>
							<tr>
								<th class="title">권한 <span class="essential">*</span></th>
								<td class="txt">
									<input name="auth" type="text" size="13" size="33" class="text" value="<%=emp.getAuth()%>" readonly/>
								</td>
							</tr>
							<tr>
								<th class="title"><label for="enameid">이름</label> <span class="essential">*</span></th>
								<td class="txt"><input name="employee_kname" type="text" size="33" class="text" value="<%=emp_info.getEmployee_kname()%>"></td>
							</tr>
							<tr>
								<th class="title"><label for="enameid">영문명</label> <span class="essential">*</span></th>
								<td class="txt"><input name="employee_ename" type="text" size="33" class="text" value="<%=emp_info.getEmployee_ename()%>"></td>
							</tr>
							<tr>
								<th class="title"><label for="jumin1Tempid">주민등록번호</label> <span class="essential">*</span></th>
								<td class="txt"><input type="text" name="ssn1" maxlength=6 size="14" class="text" value="<%=emp_info.getSsn1()%>"> - 
												<input type="password" name="ssn2" maxlength=7 size="14" class="text" value="<%=emp_info.getSsn2()%>"></td>
							</tr>
							<tr>
								<th class="title"><label for="gender">성별</label> <span class="essential">*</span></th>
								<td class="txt">
									<input type="radio" name=gender value="남자" <%if(emp_info.getGender().equals("남자")) out.println("checked");%>>남자
									<input type="radio" name=gender value="여자" <%if(emp_info.getGender().equals("여자")) out.println("checked");%>>여자
								</td>
							</tr>
							<tr>
								<th class="title">생년월일 <span class="essential">*</span></th>
								<td class="txt">
									<input type="text" name="birthday" size="33" class="text"  value="<%=emp_info.getBirthday()%>"/>
									<span class="exp">예) 1977-03-06</span>
								</td>
							</tr>
							<tr>
								<th class="title"><label for="handTel1id">핸드폰</label> <span class="essential">*</span></th>
								<td class="txt">
									<input type="text" name=phonecel maxlength="20"  filter="[0-9]" style="ime-mode:disabled" size="33" class="text"  value="<%=emp_info.getPhonecel()%>"/>
									<span class="exp">예) 010-1245-6789</span>
								</td>
							</tr>
							<tr>
								<th class="title"><label for="silTelid">내선전화</label> <span class="essential">*</span></th>
								<td class="txt">
									<input type="text" name=phonecompany  maxlength=20 size="33" class="text"  value="<%=emp_info.getPhonecompany()%>" />
									<span class="exp">예) 02-111-2222</span>
								</td>
							</tr>
							<tr>
								<th class="title"><label for="emailid">이메일</label> <span class="essential">*</span></th>
								
								<td class="txt">
									<input id="email" type="text" name=email maxlength="40" size="33" class="text"  value="<%=emp_info.getEmail()%>" />
								</td>
							</tr>
							<tr>
								<th class="title"><label for="silPostNoid">주소</label> <span class="essential">*</span></th>
								<td class="txt">
										<input type="text" maxlength=13 name="postalcode" size="10" class="text"  value="<%=emp_info.getPostalcode()%>" />
										<span class="exp">우편번호) 302-232</span> 
									<div class="txtImgNextInput"><input type="text" name="address" maxlength="60" size="66" class="text"  value="<%=emp_info.getAddress()%>"/></div>
								</td>
							</tr>
							<tr>
								<th class="title">직  급 </th>
								<td class="txt">
									<input type="text" name="position" size="33" class="text"  value="<%=emp_info.getPosition()%>" />
								</td>
							</tr>
							<tr>
								<th class="title">입사일 </th>
								<td class="txt">
									<input type="text" name="hiredate" size="33" class="text"  value="<%=emp_info.getHiredate()%>" />
								</td>
							</tr>
							<tr>
								<th class="title">퇴사일</th>
								<td class="txt">
									<input type="text" name="retiredate" size="33" class="text" value="<%=emp_info.getRetiredate()%>"/>
								</td>
							</tr>
							
						</table>
						
					</td>
				</tr>
			</table>
			<input type="button" value="변경하기" onclick="check()">
			</form>
			
		</td>
	</tr>
	<!-- 본페이지 끝-->
	<!-- 하단 페이지 시작-->
	<tr>
		<td style="height:40px">
			<!-- 상단 메뉴 페이지 포함 -->
			<jsp:include page="../include/bottom.jsp"></jsp:include>
		</td>
	</tr>
	
</table>

</body>
</html>